cmake_minimum_required(VERSION 3.15)

project(ch1
  VERSION 0.0.1
  LANGUAGES CXX
)

set(CMAKE_CXX_STANDARD 20)

set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib)

add_library(cohesion_high cc/cohesion/high_cohesion.cpp)
add_library(cohesion_low cc/cohesion/low_cohesion.cpp)
add_executable(coupling_loose cc/coupling/loose.cpp)
add_executable(coupling_tight cc/coupling/tight.cpp)


## NOTICE: Here is important
## for exmaple, if not main function, add lib...
##              if has main function, add exe...
## I dont write, because I make all executable, just simply run `make <name of .cpp file>`
